Added client side code for signup