added validation to quantity and order id