views.py updated with loginrequest