Debug Document and Modify Validator