Fixed a bug in the user controller.