Add a validator for Where statements.