sets local storage on login