Added getUserInfo function - retrieves data about user based on id