added support for login with email address