Small change to authenticate with the email instead of with the username