added tls options and expected version. Changed hostname regex to not permit hostnames starting with numbers