TRUNK-2660:Validate field lengths of domain objects in management pages

https://tickets.openmrs.org/browse/TRUNK-2660