Fix for a problem with button click event firing each time user pressed Enter key in different input field