Enabled signal handlers for login and logout.
Added templates (which will need to be changed).