Add empty input prevention