Preventing adding elements to lists without selecting a category