Modified validateRoomCode