make room_validat as class. and fixed versus chat bug