Added security check before loading, saving and deleting invoice template entry.