registration api working