Validate field lengths of domain objects in management pages

Here is the details of my ticket https://tickets.openmrs.org/browse/TRUNK-2660