can you please explain how can I override validate doc_event which is written in standard hooks.py file