prevent user from adding empty input

check for 'whitespace chars only' in the input text field