add registration api