added encryption of the password