Fixes the enable/disable state of the ok button in "Add chat room" dialog.