Im learning python and i want to have this function "checkusername" check if the user is within a user list. but it dosent seem to check the list.
userlist = ["mint"]
ilogin = " "
ipass = " "
def displayWelcome():
    print "Welcome to Mints Server"
    print " "
def getUserLogin():
    return raw_input("Please enter in your login id: ")
def getUserPass():
    return raw_input("Please enter in your login password: ")
def displaylogincred(ID,password):
    print "ID: " + ID
    print "Pass" + password
def checkUsername(user):
    global userlist
    if user == userlist:
        return "Login Successful"
    else:
        return "Login Incorrect"
displayWelcome()
ilogin = getUserLogin()
ipass = getUserPass()
print checkUsername(ilogin)
 
    