display errors on invalid cases