This is a follow-up question to Login with username or email with Cakephp 3: Is it possible to first check if a user is found by username and if not try to find the username