When checking whether a (shared) template name already exist in the destination table, make sure to discriminate by user.