validated prompt

watch for empty string while casting