changed main.cgi to correctly instantiate validator