readded resendCode functionality

somehow got deleted a couple of syncs ago