fixed some login quirks, logout clears link-history and shows blank ogin form