wrote simple authorized decorator for use on html pages