Unfortunately, the referral code (if doing it manually) must be entered during the sign up process. If using a link, then the sign up must have been done via the link, we are unable to connect accounts after a user has already registered.