added email check on registration