added basic email validity checking