cancel publishing when validation fails