check for empty input