UserController implementation changed as recommended