Created another while() to check for empty input