Make sure localStorage is recreated upon login and destroyed upon logout