Adds endpoints for login and register