I added a custom attribute to customer entity in my Magento store and successfully displayed it in the registration page. Now I want to display it in the registration form of the onepage checkout. I tried to modifiy the persistent/checkout/onepage/billing.phtml to add my new field but adding it to this file shows the new field also when a user checkouts as guest.
How can I show it only when a new user is registering in checkout onepage?