text validation fix and message