clear local storage on submit