Added getUser function