Updating update method in user controller