Handling input error case