LiPo battery with protection circuit