Add a method to check if some attribute was changed and hasn't been saved.