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.
'duration of validate_doc_update function calls'