implemented component to validate orders