validate from  textInput