changed hostname validation to compensate for the lack of checking for the nodeid