add login network logic