adapts change password to the new structure