Adds custom authentication provider. Not working properly