added full creating functionality and encryption for passwords