set post author to logged in userid for posts