Added middle-ware for authorization