updated views.py for unauthenticated users