Added email messages for registration and added hashes for passwords