Adding functionality to posts controller for updating authorized posts