fix register_user bug