update validation on save