implemented the queryUserInfo method