add support for logging in, joining a channel.