Changed the change password function

The change password function now updates the array that holds the password, not just the file.