displays the error message when no input has been entered