Added user profile viewability check