check button only when a pin has been provided