Making the field validate itself when setting text manually