Validation check in postOrder.