Authentication fix. For some reason, django stores username information in the POST variable called username, even if the form refers to it as email. Changing that in the views.py file fixed it