input: Write a python function to validate a given password.
  assert PasswordValidator("12345678").validate() == True
  assert PasswordValidator("12345").validate() == False
  assert PasswordValidator("password123").validate() == True
output: class PasswordValidator:
      def __init__(self, password):
          self.password = password
  
      def validate(self):
          return len(self.password) >= 8