add email/url validate function