Changes
Added: function to handle authorization
Added: function to handle authorization