added before save password hashing.