change user name to email for login