add network connetion to the login and register view