added localstorage for username/password