This patch 1) adds detection of button-click, so that error message can be displayed upon input of empty password, and 2) refactors code so that an empty password when password exists will display "Incorrect Password" instead of just refreshing the modal