Validations assigned to :title and errors captured in post in index.html.erb
Update function added