validate title