Remove all of the grammar flaws from the given sentence:
To conclude, the train accident that had happened in Germany could have been prevented with the use of psychology in the design process.
To conclude, the train accident that happened in Germany could have been prevented with the use of psychology in the design process.