Form validation / Lightbox: Changed undefined approach and moved event handlers to the JEP model.