Fixed bug in user controller