implementing orchestrator cpi
adding validation mehtod