Fix typo in validator security check