improving code readability for UserController