added validate/apply referral code