RPC login and queries working