removed the check for referrer on login

see issue #601. Basically it's annoying to be redirected to wherever you were before every time you log in. So instead this branch redirects you to the main index page.