switch from username to email address