Added last entered text to local storage so that its loaded
when page is reloaded.