add function editing author_id for Create and Edit pages