updated validation api