Invalid entries disable dialog buttons

@dinhviethoa