dont check discount_code if blank