Fixed broken login

Reverted Inah’s changes to allow a user to login with their email
address.