added if statements to check if user input data for each prompt