add validation to ensure title are specified when creating posts