Implement working validation on textinput.