upgraded form security from XSS and error validations.