Added authorization to edit/destroy pins