updated docs for authentication, connect middleware.