reg page is done client side