setup validation for prompt

setup validation for prompt