added forgotten code to generate salts
repaired sending e-mails when registering, and deregistering through those e-mails