Validering, serializering