AppleScript in Login Window or right after it

Is it possible to run AppleScript in Login Window or right after user inputs username/password?

Not sure but next best thing is adding it to the Startup items list. To launch after login