validate function now returns receipt hash as well
validate function now returns receipt hash as well