Added the last parts in post controller, edit from string to objects to the server request (frontend)