fixed user registration

fixed error in user registration