null validator on cancel button