updated the user controller