Added function to view other users' profiles