Server, added login and logout communication.