Added a specs for authentication middleware and extended docs