Add new constructor and password encryption