Added validation of class names in the autoload process