added a validator.