Fixed validation errors in views and controllers for posts. Added a util method that creates a uniform validation display.