added basic authentication to the posts controller, so that you cannot edit data without providing name and password. added comments to view/posts/show.html.erb