added validator for v2