properly goes back to referral page on signin/out. Fixes #48