finish two factor auth functionality