Corrected Loops for validation

prompts were popping up twice whether there was an input or not