Dirichlet problems with singular convection terms and applications