correction in valdiating text
modified to display special charcters too.