add validation +cancelbtn