Added autenthication and authorization