Add basic authentication middleware