Moved is_valid_hostname() to challenge4