Rewarding referrals using Firebase