Store token to localStorage.