Invalid entries disable dialog buttons

@dinhviethoa
Yes, I'd noticed an identical line in this rule a few lines above.