how to make sure the form is cleared after submitted