localstorage login fix