I have some code to verify user. If the user email has not been registered, I set a flashdata
$this->session->set_flashdata(email, $email);