added validations of order