Battery registration