ai output validation