Added register api method