How to change the theme for login user in magento?

Just pick the below code…..
isLoggedIn()):
Mage::getDesign()->setPackageName('package_name')->setTheme('themename');
endif;
?>