Fixed login / logout / register - client, and server