Add option to choose whether to upgrade the password hash automatically