added encryption for passwords