updated validate pdf to do some stats