client side registration working