add ability to log in with email address in addition to username