hook the posts up to the home page
added validations for :name and :title