Fixed #2

Preserved old functionality that reloads user database after register, but added restoration of user hashes.