Add method to set text and perform immediate validation.