added validation api endpoint