<?php
Yii::app()->hooks->addAction('before_active_form', function($collection) {
// if not customer login, stop
if (!Yii::app()->apps->isAppName('customer')) {
return;
}
// if not /customer/index.php/guest/index, stop
if ($collection->controller->route != 'guest/index') {
return;
}
// print your html
echo "Some html will appear here...";
});