none-type validation error on publish