adds validation message.