Saving and validating attributes.