Minor changes in DOM element for text validation.