Updated confirm email function call