added validation to the dialogue model but cannot dispaly the error mess...

...age