Validator class implemented