fixed the post request on the clinet side to include user object in the request body