# Saving the movie React.js

**URL:** <https://forum.codewithmosh.com/t/saving-the-movie-react-js/8275>\
**Category:** React\
**Created:** [November 2, 2021, 6:13am UTC](https://forum.codewithmosh.com/t/saving-the-movie-react-js/8275 "2021-11-02T06:13:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Youssef04](https://avatars.discourse-cdn.com/v4/letter/y/22d042/32.png) [@Youssef04](https://forum.codewithmosh.com/u/Youssef04)\
**Post date:** [November 2, 2021, 6:13am UTC](https://forum.codewithmosh.com/t/saving-the-movie-react-js/8275/1 "2021-11-02T06:13:47Z")

</div>

Hey everyone, im struggling with this part I just couldnt find the issue when saving the movie when updating an existing one with PUT i always get an HTTP bad request error and when i check the request’s error in network tab it writes “title” is required even tho i have exast same code as Mosh’s and even logged my object and it has a title just before sending it…also when creating a new movie if my title has less than 5 chars it doesnt validate the saving and requests a title with at least 5 chars even though this conditions doesnt exist in my JOI schema…any clues?

---

<div class="post-metadata">

**Author:** ![Youssef04](https://avatars.discourse-cdn.com/v4/letter/y/22d042/32.png) [@Youssef04](https://forum.codewithmosh.com/u/Youssef04)\
**Post date:** [November 3, 2021, 6:16am UTC](https://forum.codewithmosh.com/t/saving-the-movie-react-js/8275/2 "2021-11-03T06:16:45Z")

</div>

After a lot of researching ( still have the same problem ) I noticed that the back end Vidly-api-node is refusing to validate my object it always says “title” is required even tho i checked a thousand times that my object has a title prop even when i took off the “required” from the backend validation it went on to say genreId is required error lol … I checked the type of each prop and they are all absolutely perfect they are even the same as the object that is accepted when I make a new movie so this all really doesnt make any sense to me…I ve never been this stuck xD
