checks for wrong input topic