<?php if($this->input->post('loginSubmit')){ $this->form_validation->set_rules('email', 'Email', 'required|valid_email'); $this->form_validation->set_rules('password', 'password', 'required'); if ($this->form_validation->run() == true) { $con['returnType'] = 'single'; $con['conditions'] = array( 'email'=>$this->input->post('email'), 'status' => '1' ); $checkLogin = $this->user->getRows($con); // assumes 'password' field is also returned.. if(password_verify($this->input->post('password'), $checkLogin['password']){ ...