Updated the user controller