Issue #523 folder dialogs use new validation logic

minor stylistic remark: you removed the space between ``List.map`` and ``(fun``