Wrote LoginClient.