change user to author on post and add slug