removing reference to requiredIfGroup rules and adding check in validate function