how do you make a passworded game

how do you make a game with a username and password thing, where when you type a conbination of username and password it would work when you press login but if its not a real combination of the two than it would not work?