make sure that the user is referring to the session user in publish