Functions - Wacky variables & validation

Adding variables and validation for prompt