improve getUser method on UserController