Fix register input box JS interaction