empty data check, valid email check