fix bug where domain with \.{2,} in it is considered valid