If you need to switch between two accounts, just close Steam and then click the "exit" button in the Windows taskbar. This is the reason why two-factor authentication is required