added error for invalid room name