Create a login screen. Write a simple if statment for a login method(this will use a bool). Create some way to compare username with a username in some sort of db or file and then make sure that the password is in relation to username, then return a boolean. If it makes a match, return true, otherwise return false.
boolLogin = LoginMethod( txtUsername.text, txtPassword.text);
if(boolLogin == true)
{
//Successful login
}
else
{
//Failed Login
}
Something like that, it is fairly simple as you can tell. If you are doing a db thats, SELECT * FROM <dbName> WHERE username = '<username>' AND password = '<password>'.
Hope this helps,
John