added validation api