Should I have bet the river and called as I did ?

Ultimate Bet No-Limit Hold'em, $.25 BB (9 handed) Hand History Converter Tool from FlopTurnRiver.com (Format: FlopTurnRiver Cards)

MP2 ($18.66)
MP3 ($4.30)
CO ($18.76)
Button ($9.22)
Hero ($133.33)
BB ($56.26)
UTG ($16.84)
UTG+1 ($10.79)
MP1 ($103.34)

Preflop: Hero is SB with , .
1 fold, MP1 calls $0.25, 2 folds, CO calls $0.25, 1 fold, Hero raises to $1.25, 1 fold, MP1 calls $1, CO calls $1.

Flop: ($4) , , (4 players)
Hero bets $2, MP1 calls $2, CO folds.

Turn: ($8) (3 players)
Hero bets $5, MP1 calls $5.

River: ($18) (3 players)
Hero bets $10, MP1 raises to $31, Hero calls $21.

Final Pot: $80