Add IIFE to block scope on validation event binding