added user sessions to controllers.