Take at least 3 of the rams back. A 10 gallon tank is WAY too small for 5 rams!! Rams are territorial and require about 2ft of plan area each. If they breed then this area will at least double. If you are lucky you might get away with 2 rams. This is on top of the fact that a ten gallon can only hold 10 inches of fish and you have about 12 inches not including the loaches.
Have you cycled the tank? If not then it's a fair bet that the 2 rams you keep will die anyway. Rams are, in my experience, delicate fish that require a mature tank and good water quality. Putting all those fish into a new tank is a recipe for disaster. Ammonia by the gallon will happen!
Go to the Beginner section and read the pinned notices. They will save you lots of heartache and money!
If one of your loaches had Ich then you can bet your bottom dollar that the other fish in the tank are going to get it. Every ram I have ever bought has suffered from Ich within a week of me buying them. They showed no sign of it when I bought them, they just got stressed out by the move and developed the problem. Apparently rams are know to be pre-disposed to Ich.
Another point. 4 males will kill a single female in their attempts to breed. She will get pressured by all 4 until she weakens and dies. It's best, with rams at least, to have at least as many females as males. That way the males attentions are diluted across the female population allowing the females to have at least a little time out of the limelight provided by a bunch of randy males!
Rams are great fish but they do require a fair bit of space. If you really want to keep these fish then I'd suggest a bigger tank. They are worth it though!
WK