working posts with CRUD and validations