added simple text field validation