Aston Villa and Borussia Dortmund had work to do at home in the battle to reach the last four of the UEFA Champions League.