Stores input text inside local storage.