Added getUserID and fixed doRegister
Uncommented insert call