error's in validate method