Remove dependency on password file
Delete unnecessary lines
Add message before crashing when console is null