Improved error handling for age input