added order validation