Saves inputs content to local storage.