copy of sign up with code edits from jh