register button bug fix 1