disable add button on top level element if input fields are invalid