var validate: (String) -> Boolean
Text validation
Default implementation return false
text - the input text
text
Result true if the text is valid