Made InputDialog more useful

Accepts the prompt, title, and a validation lambda. Returns the string input.