lid email';
    }
    if (!password) {
      errors.password = 'Password is required';
    } else if (password.length < 6) {
      errors.password = 'Password must be at least 6 characters';
    }
    
    setState('form.errors', errors);
    return Object.keys(errors).length === 0;
  };
  
  return {
    render: () => ({
      div: {
        className: 'form-container',
        style: {
          maxWidth: '400px',
          margin: '20px auto',
          padding: '30px',
          background: '#f9f9f9',
 