issue #clamscribe-1 Smarty: Login function