middleware request.user bug fix

middleware request.user object