implementing client side signup code