Barcelona boss Ernesto Valverde celebrated his 400th match as a La Liga manager in style as Barca beat Villarreal.