Storing todo list into local storage.