add confirm order total cost error check