Move registration of the custom validator extension to register()
Convert from tabs to spaces