I'm using codeigniter form validation. but i have problem, that is, password matches does not work for me. When callback method shows "email does not exist",
that time, all validation are working fine.

```
public function forget_password() {

    $this - > form_validation - > set_rules('email', 'email', 'trim|required|valid_email|callback_verifyUser',
        array(
            'required' => 'You must enter your email!',
            'valid_email' => 'Enter valid email!',
            //'is_unique' => ' is already exists'
        )
    );
    $this - > form_validation - > set_rules('password', 'password', 'trim|matches[confirm_password]|required|min_length[6]',
        array(
            'required' => 'You Must Enter Password',
            'matches' => 'Password Must Match with Confirm_password',
            'min_length' => 'Minimum contain 6 charaters',
        )
    );
    $this - > form_validation - > set_rules('confirm_password', 'confirm_password', 'trim|required',
        array(
            'required' => 'You Must Enter Password',
        )
    );
    if ($this - > form_validation - > run() === true) {
        $this - > load - > view('forget-password');
        $this - > load - > view('template/footer');
    } else {
        $this - > load - > view('forget-password');
        $this - > load - > view('template/footer');
    }
}

public function verifyUser() {

    $email = $this - > input - > post('email');
    if ($this - > e_model - > login_view($email)) {
        $result = $this - > e_model - > reset($email);
        $this - > session - > set_flashdata('flsh_msg', '<div class="alert alert-success text-center">New password created successfully!</div>');
        redirect(current_url());
        return true;
    } else {
        //$this->form_validation->set_message('verifyUser','Email does not exists!');
        return false;
    }
}

```