Added destroy button and some validations in the post controller.