fixed several Reflected XSS vulnerabilities in the registration form and in challenge 8

Fixed several XSS vulnerabilities in the registration form and in challenge 8