added get userprofile function