test for redirecting user when trying to delete and not logged in