add condition for null value on prompt