Validator as legacy code