add validation for author_id when creating post