fix root password logic