Improve Adapter error handling for better user input validation