Add function to retrieve userinfo