Implemented sign up logic