Revert "updated views.py for unauthenticated users"

This reverts commit 2434f3d0653d1a23dfcdc67532b5477a1ddaa271.