applying validation messages