Client connects and logs in finally.