Fix bug causing email address to be stored as username.