added email checking