clear validation error before submitting