registration with code