Login and logout communication to the server