switched token to local storage