Fixed a bug on the user controller.