make catch for empty input
validation