validation for main object entities.