Improved the text field again, improving error handling and adding validation independent of parsing.