allow disabling validation on saving document