validation for invalid class paths