Careful and accurate use of tenses is important for clear writing. When you use the appropriate tense for each action, readers can follow time changes easily.
The revised sentence makes clear that the bankruptcy occurred before the loan.