update paid variabe in bills when user pay or unpay
fix a bug in isOwner function