clean up validate_doc_update functionality