login by name or email
renamed variable for clarity