[Validator] Checked the constraint class in constraint validators