Update class name validator implementation.