They are all correct. For lengthier discussions with lots of examples of the use of the past perfect tense after before, see Re: before past perfect tense , past tense and Re: Past Simple or Past Perfect. This is a common pattern for expressing "interruptive relationships" between...