The way I see both 'in which' and 'where' could be used alike. As for the Past Perfect thingy, Simple Past is the right choice. Sorry I can't provide any theoretical back-up other than saying it sounded more natural.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.