added messageresources and enhanced the validation framework