Update views.py

Minor changes to restrict viewing/editing of profiles.