clean up the login networking code