make authentication providers mongoose plugins