Fixes issue #8: Once a widget is added, we also check the relationship between its outputs and inputs