update validation api