changed username to email in auth module