Added callback to applyReferralCode