Fixed bug with formValid.