EditPublication bug fix if the user is not logged in