Need some help with a text input box in a widget.

I have a simple text box in a widget where the player can type in a password in an attempt to enter an area. Each game day (of the game week), the password is something different. The way I have it set up works fine, but the print string prints twice for some reason whether the player gets it right or wrong.

I assume my solution has something to do with that “Commit” node, but I need some help here.