Write LoginDlg and Client class,Basic work