Hostname validation