Fixed: change user to be admin or not
Fixed: return error when not connected to json-rpc server