login server connection and write plist