[eluser]jcorry[/eluser]
$this->session->userdata('validated') will return FALSE if it doesn't find a 'validated' key in the userdata array.
So your conditional could be:
if(!$validated || $user_id < 1) //assumes $user_id is an integer
I changed the && to || figuring you'd want to redirect on either condition.