fix clear form validation