Fix nesting in validate.