Fixed two-factor authentication bug