Changed variable name password to hashedPassword for encrypted password