Messi records 500th Barcelona win