Insert script not working

please my script does not work(when i submit the form it returns a blank space, the validations work), and i can’t figure why, (following the oop video)

if($validation->passed()){
// insert in table
//generate code
//Session::flash('success', 'you registered successfully');
//header('Location: index3.php');
//echo 'passed';
$user = new User();
$salt = Hash::salt(32);
$code = rand(11111111,99999999);

		try {
	$user->create(array(

		'fullname' => Input::get('fullname'),
		'username' =>Input::get('username'),
		'password' => Hash::make(Input::get('password'), $salt),
		'email' => Input::get('email'),
		'code' => $code,
		'active' => 0,
		'houseno' => Input::get('houseno'),
		'addressa' => Input::get('addressa'),
		'addressb' => Input::get('addressb'),
		'addressc' => Input::get('addressc'),
		'county' => Input::get('county'),
		'country' => Input::get('country'),
		'telno' => Input::get('telno'),
		'salt' => $salt,
		'joined' => date('Y-m-d H:i:s'),
		'group' => 1

       ));


    } catch(Exception $e) {

		die($e->getMessage());

}


}else {
//output error
//print_r ($validation->errors());

foreach ($validation->errors() as $error) {
echo $error, '<br>';
					}
						
				}
			
			
		}
}

what i noticed in the script is that the validation is okay, but when the new User(); is instantiated it kills the script (after submitting the form)

if($validation->passed()){
// insert in table
//generate code
//Session::flash('success', 'you registered successfully');
//header('Location: index3.php');
//echo 'passed';

//$salt = Hash::salt(32);
//$code = rand(11111111,99999999);
//echo 'passed';
//echo $salt;
//echo $code;
$user = new User();




}else {
//output error
//print_r ($validation->errors());

foreach ($validation->errors() as $error) {
echo $error, '<br>';
					}
						
				}
			
			
			}
}

i ve fixed it , thanks