do not validate if cancel is clicked