completed a working reset password cloud code.