minor fix for form-validation.js