Fixed issue where the checkbox for Terms of Service could be switched to disabled after a validation failure which could then cause form submission to fail if there is conditional logic that depends on the Terms of Service field.
Updated require call to use plugin_dir_path().