It seems that using localhost is not allowed. its current Microsoft answer :
Valid website URL required (e.g. contoso.com, www.contoso.com, contoso.site)