validating orders