Network connection handler

login logout issues.