Actually fixed issue #4
This redirects to the latest page when you're logged in already even if you go on ?action=login.