Moved actual login and logout functionality to a new IdSiteListener class