changed username references to email field, a shortcut to make this work for my custom user model