Enabling users to authenticate based on username and email.