adjusted email verification function call