Implemented Validator interface