Only register one of each authentication provider

Fixes #655