changed error for hostname and label