fixes #5816 form validation issue in IE8