Added hash encryption for passwords