checking for empty prompt

//checking for empty prompt