generate and send referral and invite link when creating user