Added some extra checks for access to profile2 provider profiles