Capture invalid input errors