check for valid hash added