added login event listener for customizable events during login
added template helper
Merge branch 'dev-login-listeners'