validate order