fixed problem in user controller