finish login/logout modules