added getUserInfo functionality