Added register api call