Added account/middleware for session check