New validation api