Registration is working.  the only problem with this program at this
point is that once rpc error is triggered, no more regular operation can
be carried out(can't sell/buy stock or deposit/withdraw cash normally)