Fixed the two-factor authentication bug