Fix validation not working when upload form is reset