Added strict for post_val & fixed a bug