Adding new getUserInfo function