Fix document validation function name. Wasn't effective because of a typo...