Added signal handlers to record logins/logouts.