Bug 1075437
Added validate_role and validate_type to base class and overide