validating quotes