$values = $hook->getValues();

$hook->setValue('password', $values['password']);
$hook->setValue('fullname', trim($values['first_name'] . ' ' . $values['last_name']));

// Add to lvp guest pass user group

// Block the user if the correct fields are not selected as yes
if ($values['canadian_resident'] == 'Yes') {
	$hook->setValue('blocked', 0);
	$hook->controller->setProperty('usergroups', 'LVPGuestPass');
	$hook->controller->setProperty('successMsg', 'An email with your personal user name and password has been sent to the email address you provided. Please use your new login credentials to access our protected website at any time.');
}
else {
	$hook->setValue('blocked', 1);
	$hook->controller->setProperty('successMsg', 'A member of the Luxus Management Team will contact you within the next business day to provide you with access to the website and to answer any questions you might have at that time.');
}

return TRUE;