localStorage.account undefined bug fix.