Bugfix for local storage.

I made sure that a fresh login will clear the local storage so the
details of the previously logged in account will not be leaked.