Fixed a few bugs with the user list in the group chat and added the logout code.