Authentication return false while email & password true

morning, my name is Aris,. I’m newbie and interest to developed website system used cakephp framework.
Now I’m try authenticate users in a few step

  1. inside AppController
    namespace App\Controller;
    use Cake\Controller\Controller;
    use Cake\Event\Event;
    class AppController extends Controller
    public function initialize()
    //panggil theme
    $this->loadComponent('RequestHandler', [
    'enableBeforeRedirect' => false,
    $this->loadComponent('Auth', [
    'authenticate' => [
    'Form' => [
    'fields' => [
    'username' => 'Email',
    'password' => 'Sandi'
    'loginRedirect' => [
    'controller' => 'Signs',
    'action' => 'Index'
    'logoutRedirect' => [
    'controller' => 'Users',
    'action' => 'login'
    //allow display page 'view'
    // continues to work

  2. inside controller
    namespace App\Controller;
    use App\Controller\AppController;
    Class UsersControllers extends AppController
    //fungsi authenticate
    public function login()
    if($this->request->is('post')) {
    $user = $this->Auth->identify();
    if($user) {
    return $this->redirect($this->Auth->redirectUrl());
    $this->Flash->error('Wrong email and password');

  3. inside template
    <table id="tableadd" align="center">
    <?= $this->Flash->render('Auth') ?>
    <?= $this->Form->create() ?>
    <div class="form-agileinfo">
    echo $this->Form->control('Email', array('style' => 'width:200px;'));
    echo $this->Form->control('Sandi', array('style' => 'width:200px;', 'maxlength' => '8'));
    echo $this->Form->submit('LOGIN');
    <div class="clearfix"></div>
    echo $this->Form->end();

4 inside table Users on MySql
NO Email Nama Sandi
1 Zidan mubarok

the error messages view while processing authenticate is Wrong email and password.
I was trying hard and I’m feel so tired to fix the error. I hopefull that someone knowing trouble sam as to me, could be way to fix, thanx

First of all, your code is pretty difficult to read due to the lack of indentations and highlighting.
Please put your code between 6 backticks (`).
3 backticks to open and 3 to close.
so for example:

your code here

This makes it easier for us to read an thus help you further.

I don’t know what your models look like, but I think you might want to look there.

The Auth component checks password hashes. You seem to have a plain-text password in your database, which is extremely bad data management, and also not going to work with the component.