logout call was overriding local storage