Fixed the delete function for Animals and Members