fixing missing negation operator in validity expression evaluation