Fixed errors arising from compiling Validation