remove obsolete code in login/logout system