Added authorized method and authorize decorator