Draft implementation of the logic for changing passwords.