Authorization functionality added