Adding user public-id field.
Handling json parse errors and what not.