add validation to discounts