Invalid entries disable dialog buttons

@dinhviethoa
Is it an intented change?