Error message doesn't display on dialog.