add server and login loop.