Validation class implementation