Fix account linking

I guess that works... Checking the referrer or something in the session seems more reliable, but that session tracking of where they came from can get messy.