when i submit the form with empty fileds i get the error validation BUT the parents data is saved but the parent is not