doing validator