error message shows up if medallion is not a valid number