Improved check on domain valid, check for dots and dashes.