Text input error handling