Fixed XSS vulnerabilities in Form class.