How To Validate A Document