Modified login form controller to broadcast the event after a login attempt.