player profile middleware