made changes for login required

Fixed login required in userprofile/views.py.