domain validate code