serialize user