static bool isValidPassword(String? password) { if (password == null) return false; if (password.length < 6) return false; return _passwordRegex.hasMatch(password); }