real time text validation