if($this->email->send() === TRUE){
$this->session->set_flashdata('flash_message', 'Password reset done.');
redirect(site_url().'/main/login');
}else{
$this->session->set_flashdata('flash_message', 'Password reset fail.');
redirect(site_url().'/main/forgot');