Application login not working once two DB connections have been added to org

I have created one application, 1 organisation and 2 db connections (Org DB and Admin DB). The organisation have access to both the db connections, in this case user created in Org DB is able to able to login. But user related to Admin DB is getting wrong Email or password. If I connect only Admin DB connection to organization it is working properly.