Condense all invalid-input possibilities into one conditional