fixed an issue in user controller