Some more, minor, simplifications.
Validate entered functions durign parsing not during drawing.