fixed login, chat, and changepattern