Update ChatListener.java

handles log out and in messages.