added delete function to discussion page when logged in