Make LoginEvent functional

Well, now that the event is reliable (it is always fired last) I wanted to make use of it, but it wasn't functional ;)