Modify posts controller for user association