Register middleware differently