modified views.py and urls.py to get login page working