implemented getUserProfile() method