Electrical resistivity and magnetic phase transitions in modified FeRh compounds