add validation display,add reset function