implemented the sign up function and the helper.