Prevent duplicate types/note types/categories

When adding inline from a form.