users/views.py error rectified