Validates the input in register.cgi.