added endpoint and angular service to register account.