Making the field validate itself when setting text manually

Generally the text is not validated if a developer sets the text programatically. This makes sure that a validation result is set when this happens.