changed before_save to after_validation to work when settings are changed via associated records with nested form