Fixing error when a user is not loged in
Allowing a user to delete a survey. The responses associated with the survey are also deleted