Add beforeSave event to users