Validate document update stats

This adds two new metrics about counting validation rejections and the time was spent on running vdu functions. The reason for each inside commit messages.
'number of rejections by validate_doc_update function'