Checking for wrong value