error checking around set_hostname_Details