Login thing

Ok im trying to make a login thing so that people can play a game im making, the point of logging in is that when you log out it saves your progress. how could I make one where the login system would look for usernames and passwords in XML files? So like when a user enters his/her username password it seraches all the .xml files for the right one and if its not there then access is denied.