Added validation message to text attribute