added validation for 1st prompt