Update registration code