How can we set validation for no space in the text field.