Adding pattern match for the authentication middleware.

Missed a pattern match.