Hashing password logic on edit