Allowing user to login using email address or username.

Closes #14