validating prompts