Make user object serializeable