added display of validation messages