Added register endpoint