User can login with either username or email

[Finishes #45568987]