fixes for text validation