Error and no input detection