clear localStorage upon form submission.