complete email validate function