validate method undefined