When I am making a post request from react, it sends a null value to the database and I do not understand why. When I console.log the state, it does set the state to the input v