The bike should have three wires to the rear light - black for earth, blue for brakes and red for taillight. If the light fitting you've bought only has two wires chances are they're for brake and taillight - connect the black earth wire to the body of the light fitting to ensure a decent earth.
Matt