Answer: Here's the program in Python:
```
# create lists of user names and passwords
usernames = ['john', 'mary', 'dave', 'jane', 'alex']
passwords = ['pass123', 'abc456', 'qwerty', 'password', 'letmein']
# ask user to enter their username and password
username = input("Enter your username: ")
password = input("Enter your password: ")
# check if username is valid
if username not in usernames:
print("Invalid username.")
else:
# get the index of the username in the list
index = usernames.index(username)
# check if password is valid
if password == passwords[index]:
print("You are now logged in.")
else:
print("Invalid password.")
Explanation: In this program, we first create two lists `usernames` and `passwords` that store the user names and passwords respectively. We then ask the user to enter their username and password using the `input()` function.
Next, we check if the entered username is valid by using the `not in` operator to check if the username is not in the `usernames` list. If the username is invalid, we print a message saying so.
If the username is valid, we get the index of the username in the `usernames` list using the `index()` method. We then check if the entered password matches the password stored at that index in the `passwords` list. If the password is valid, we print a message saying that the user is now logged in. If the password is invalid, we print a message saying so.