renamed 'username' to email