added on access protect function across all of the userprofile views