cakePHP registration don't work
<p>I'm new to CakePHP and just starting with the CookBook Examples. Now I want to create a simple registration and Login form with my custome Table columns. But the system do not want to insert the data! Where is my mistake? Is it right to tell him in the AppController which fields to use?</p>

<p>add.ctp=</p>

<pre><code>&lt;div class="users_form"&gt;
&lt;?= $this-&gt;Form-&gt;create($user) ?&gt;
&lt;fieldset&gt;
    &lt;legend&gt;&lt;?= __('Add') ?&gt;&lt;/legend&gt;
    &lt;?= $this-&gt;Form-&gt;input('username') ?&gt;
    &lt;?= $this-&gt;Form-&gt;input('password') ?&gt;

&lt;/fieldset&gt;
&lt;?= $this-&gt;Form-&gt;button(__('Submit')); ?&gt;
&lt;?= $this-&gt;Form-&gt;end() ?&gt;
</code></pre>

<p></p>

<p>UsersTable.php</p>

<pre><code>class UsersTable extends Table{
 public function initialize(array $config)
{
    parent::initialize($config);

    $this-&gt;table('ab_login');


}
public function validationDefault(Validator $validator)
{

    return $validator
            -&gt;notEmpty('username', 'insert name')
            -&gt;notEmpty('password', 'pw insert');


}
}
</code></pre>

<p>AppController.php</p>

<pre><code> parent::initialize();

    $this-&gt;loadComponent('RequestHandler');
    $this-&gt;loadComponent('Flash');
     $this-&gt;loadComponent('Auth', [
    'authenticate' =&gt; [
        'Form' =&gt; [
            'fields' =&gt; ['username' =&gt; 'ab_mail', 'password' =&gt; 'ab_pass']
        ]
    ]
]);
</code></pre>

<p>UsersController.php</p>

<pre><code> public function add()
{
    $user = $this-&gt;Users-&gt;newEntity();
    if ($this-&gt;request-&gt;is('post'))
    {
        $user = $this-&gt;Users-&gt;patchEntity($user, $this-&gt;request-&gt;data);
        if ($this-&gt;Users-&gt;save($user)) 
        {
            $this-&gt;Flash-&gt;success(__('inserted!'));
            return $this-&gt;redirect(['action' =&gt; 'add']);
        }
        $this-&gt;Flash-&gt;error(__('Error!'));
    }
    $this-&gt;set('user', $user);
}
</code></pre>