Add break condition

break if user input is empty.