First, let's analyze a part of your code.
The condition in your command
if line.strip() == "Username: "+username and "Password: "+password:
is possible to write with parentheses (by the operator precedence) as
(line.strip() == ("Username: " + username)) and ("Password: " + password)
Now, the right-hand operator of the resulting and operation
("Password: " + password)
is a nonempty string, and - consequently - evaluated as True (see Boolean operations), which makes your if statement the same as
if line.strip() == "Username: " + username
and, consequently, the password is never checked.
Now, to the logic of your program:
In your input file you don't have the words "Username: " and "Password: ", but something as
JohnDoe: pswd123
so the string literals "Username: " and "Password: " are totally inappropriate in your if statements. You wanted compare the entered username with the username in your file, and the entered password with the password in your file, in our example something like
if (username == "JohnDoe") and (password == "pswd123"):
or - following the format of lines in your input file -
if (username + ": " + password) == "JohnDoe: pswd123":
The right-hand part of == is simply the line of your input file, so your if statement may look as
if (username + ": " + password) == line:
so the (corrected) code of your program becomes
username = input("Enter username: ")
password = input("Enter password: ")
with open("myfile.txt") as username_finder:
for line in username_finder:
if (username + ": " + password) == line.strip():
print("Correct")
break; # No need to search other lines
else:
print("Sorry, this username or password does not exist")
Note the else branch of the for loop - it will perform only in the case when the loop is naturally exhausted, not interrupted by the break statement - see The for statement in the documentation.