Fix for non-logged in user unable to access user profile pages