validate  if term is empty