Add validation to ensure titles are specified when creating posts