added validation for related order id