implemented authentication against digest hash