Teting validate method