Fixed minor bug in UserController