added register and generatePasswordReset callbacks for mongoose test