Added register/login end points.