Fixed undefined behavior; enabled passwords.