added simple Validator class