Added a validate rule.