changed the variabel to valid email check from config file