check if domain is valid