validate terms