add expire for hash
add error for hash check