Validating cancel tab