Checking for wrong input when it was supposed to be the related input