Catch invalid input exception