added a persistent login using localStorage