Aston Villa boss Unai Emery knew his side had to beat Leicester if they wanted to keep their top-four challenge on course.