validations for order