Updated register and signin for redirecting back to referral
Added extra redis db and wrote functions to store referrals for signin and register