Add handler for bad filling in dialog.
Better UX.