Changed post_controller, site/index.html.erb. User can edit,destroy only his posts