added beforeSave method to authenticated user
build mcap js