public static void Main()
string ValidNames = "user";
string ValidUserPassword = "pass";
string UserPassword = "";
bool ValidUserNameFlag = false;
bool ValidUserPasswordFlag = false;
bool ValidCredentials = false ;
string[] ValidUserNames = new string [] {"user","Bob","Jane"};
string[] ValidUserPasswords = new string[] {"pas","1234","!@#$"};
Console.WriteLine("User Name or Email");
UserName = Console.ReadLine();
Console.WriteLine("Password");
UserPassword = Console.ReadLine();
if(UserName == ValidUserNames[ eachUser] )
ValidUserNameFlag = true;
if (UserPassword == ValidUserPasswords [eachUser])
ValidUserPasswordFlag = true;
if (ValidUserNameFlag == true && ValidUserPasswordFlag == true)
} while (eachUser < ValidUserNames .Length);
if (ValidCredentials == false)
Console.WriteLine("Invalid Credentials");
}while(! ValidCredentials);
Console.WriteLine("Welcome back");