Set up conditional statements to check validity of entries to prompts.