function

validating prompts