Moving the logout DOM manipulation to the loginhandler service