dev: check  if text field input  is valid