Add confirm email logic