Added missing import of User in accounts/views.py.