Created a while() loop to check against empty input