created validate for prompts