def validate_password(self, password_field):
        if len(self.text(password_field)) < 6:
            self.show_alert(
                _("Bad password"), _("Password should contain at least 6 chars.")
            )