Fix the registration bug using locality on oudormir form and other stuff