Allows authentication with either a username or an email address.