login with DB connection