Please help me with the task: Password validator.

Hello, I’m working on this task:

Write a program that validates a password. It should read the password from the new line and check that it is at least 8 characters long and contains at least one uppercase letter, one lowercase letter, and one digit. If the input doesn’t meet these requirements, your program should output an error-specific message as follows:
“Password length should be 8 symbols or more.”
“Password should contain at least one uppercase letter.”
“Password should contain at least one lowercase letter.”
“Password should contain at least one digit.”
If the user violates several rules at once, write all error-specific messages that apply, each on a new line, in the same order as listed here. The program should continue to ask for and read the password until the user inputs a valid value. Once a valid value is given, the program should output: “Your password is properly set!” For example:
>secret
Password length should be 8 symbols or more.
Password should contain at least one uppercase letter.
Password should contain at least one digit.

>Secret
Password length should be 8 symbols or more.
Password should contain at least one digit.

>Secret8
Password length should be 8 symbols or more.

>Secret88
Your password is properly set!

Here is my code:


namespace InputValidation
{
   class PasswordValidator
   {
       static void Main(string[] args)
       {
           var password = Console.ReadLine();
           bool overYet =false;
           bool success=true;
           bool hasUpper=true;
           bool hasLower=true;
           bool hasDigit=true;
           while (overYet==false)
           {
             
             hasUpper=true;
             hasLower=true;
             hasDigit=true;
             success=true;
             
             for (var i=0; i<password.Length; i++)
             {
                   
                   if (!char.IsUpper(password[i]))
                    hasUpper=false;
                   if (!char.IsLower(password[i]))
                    hasLower=false;
                   if (!char.IsDigit(password[i]))
                    hasDigit=false;
                   if (hasUpper==false||hasLower==false||hasDigit==false)
                     success= false;
                   
             }
             if (password.Length<8|| success==false)
             {
                 if(password.Length<8)
                  Console.WriteLine("Password length should be 8 symbols or more.");
                 if(hasUpper==false)
                  Console.WriteLine("Password should contain at least one uppercase letter.");
                 if(hasLower==false)
                  Console.WriteLine("Password should contain at least one lowercase letter.");
                 if(hasDigit==false)
                  Console.WriteLine("Password should contain at least one digit.");
                 
                 
             }
             else
              overYet=true;
             
           }
           Console.WriteLine("Your password is properly set!");
       }
       
   }
}

Can anyone please help me to solve it?