Adding new validation to xss

Adding new validation to xss