Update core to support custom registration template.