storing token to local storage