Added function to get user profile