User login with multiple databases
===

I am creating application with multiple databases. Each user has his own data stored on remote or local db server. How to solve login proces with one login form for all users. Is it good approach to have one lets say login database containing user email/password and other clients data as db server ip, password to db, name of db, location of app,... or there are some other way to handle it?