Implemented endpoint for updating user