Messi reaches 500 goals for Barca