registration scenario working