Condition for custom login

<?php if(Mage::helper(‘customer’)->isLoggedIn()){?>

//your code

<?php } ?>