Check validity on upserts