added performance fix for hashing password