Complete code coverate for the external login authenticator and fix bugs