Execute deluge upon login?

Execute deluge upon login?

Does anyone know if it's possible to execute one or more deluge scripts upon startup of login of an application? 

For example, some of us maintain a users table in which app users can update some basic profile information or application parameters. If their record is not yet in the table (i.e. Added_User==zoho.loginuser), I would like to insert a new row transparently upon login.

Thanks,
Jeff