Switched back to email authentication

Usernames are not unique, unlike emails.
This method could be prone to errors.