Add validation and pagination

- Add validation to PostsController
- Include errors in the views for create, edit
- Add pagination