{Fix} Centralize validation events in main/app.js to fix login bug.