validate model and empty input:text