code length and unique promo validation