hostname validation