Add UserActivity to middleware for keeping track of last activity