beforeSave can be used for validation