bug fix on user registration

not pop up the dialog