If you are using 2 factor authentication on an older device…
You should be able to append the code to your password and enter that (i.e. if your password is ABC and your code is 123, enter ABC123), however if this doesn't work, you may want to temporarily disable the 2 step verification/2 factor authentication while you log in.
Get a verification code and sign in with two-factor authentication