validate function should be loaded even if dnd not supported