Fixed bugs in Login server.