add hostname validation