I'm working with cakephp3. I want to make login page. Name of table in Accounting database is 'users'.

This is my code:

```
<?php
namespace App\Controller;

use App\Controller\AppController;

class UsersController extends AppController {

public function login() {

    if ($this->request->is('post')) {
        $data = $this->request->data;
        $cnt = $data->Users->find()
                ->count();
        if ($cnt > 0) {
            $this->redirect(['action' => 'index']);
        } else {
            $this->set('error', 'username or password is incorrct ');
        }
    }
}}

```

and this is Users.php

```
<?php

namespace App\Model\Table;

use Cake\ORM\Table;

class UsersTable extends Table {

}

```

after login in login page:

> 
> Error: Call to a member function find() on a non-object 
> 
> 
> 

In your opinion, what is the problem.