persister login info to local storage