I don’t think you can use an if statement here, you’ll need a for loop to go through all the items in the Column and then use your if statement inside that loop.
Then you need to check if the user has entered the correct data that is in the database, then good, if the entered data is not in the database - false.