Added a validation class.