adding enter key functionality to the app
prevent user from adding empty string