add: toJSON method for user