add script & event to logon page.