prints for invalid inputs