worked simple email validation on registration