add checkEmailState function