There is no way of checking whether an order is valid as orders require a check of whether or not the user is the actual owner of the territory that is being operated on. Must make sure that all unit "team names" are being set properly before a basic string check can be implemented.