Fixing bug with Unathorized user