Make user serializable for persisted sessions.