added custom receipt validation