Fixed a bug where the OK button was initially enabled even though the
input was invalid