add a function user register.