Fixed bugs in UsersController.cs