Resolved issue with getting user profile