You learned the importance of quarantine. Unfortunately, you learned it the hard way.
Your best bet to prevent something like that again is to buy all your fish at once from the same source, and never add anything else to the tank unless it has been fully acclimated and quarantined by you. If everything was going well before the disease issue, I'd say just keep doing that. If it ain't broke, don't fix it.