added code for validation messages.
changes to text.