UserManController.registerUser now checks email and password for validity and returns the object ID of the new user.