Fixed the register button not registering.

Changed the endpoint for the register button in the event details page.