Fix all grammar flaws in the given text.
To sum up, if psychology was applied in the design engineering stage, feedback loops would function to minimize human errors in the process.
To sum up, if psychology had been applied in the design engineering stage, feedback loops would have functioned to minimize human errors in the process.