fixing quote validation