They are both correct English. The difference is the usual difference between present perfect and past perfect: present perfect is from the viewpoint of now; past perfect is from the viewpoint of some point in the past.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.