fix(install): moved password hash update to function

Password hash update was run twice if this is a full install, which caused a double sha512 hash of the password.
Moved the password update to its own function, so it will only run now during normal upgrades.