post method and local storage