Fixed validation so that full class names are provided on errors