for each line in the file split up into name and password if the name is the needed name verify the password if it is correct end the loop successfully otherwise cry for help or simply die of error ... if the name doesn't match go to the next line