Fix User::beforeSave().