Changed UserService#register return type to an Either.