dded error checking in dialog