Extracted user logic from Emailtoken confirm method