Printing headers when validation fails