adding token to local storage