Refactor put request action to /users and handle. Test and implement sad paths.