added getUser function