Add the serialization functions for the User objects.