registration code working