fix typo in validate_doc_update