Allow authentication with email-address+password

Previously, username and password were required. With this patch, the email address can be used to authenticate the user with the password