Fixed a bug where User::fromDatabase got an incorrect password.