Completed open file function.

Added a password hash to the root to confirm that it is indeed the correct password.