Fix equality comparisons in Agree validator