fix validation of text input fields