post type validation; post type in sql included