text validation working