NXP-9444: make fancybox work well with validation errors