Better User object serialization