Added encrypted password functionality.