corrected getUser method